ParcelLabel API

(2 reviews)

Create Label(s) International Inbound to NZ (Offshore)

How to generate parcel labels for parcels being sent from overseas locations

When generating parcel labels for packages originating from outside of New Zealand, merchants are able to choose the shipping method for how the parcel will be delivered to its destination. NZ Post currently offers the following services for customers:

  • International Courier (tracked) - courier service into New Zealand
  • ETOE (Please speak to your NZ Post account manager). Refer to the Create Label(s) - International ETOE page

These services need to be enabled by NZ Post before a merchant can use the service. Please contact your NZ Post account manager to activate the service you require.

Resource URL

UAT:

https://api.uat.nzpost.co.nz/parcellabel/v3/labels

Production:

https://api.nzpost.co.nz/parcellabel/v3/labels

A unique consignment_id is returned once the details of the request are stored in the labeling database. One or multiple labels can be generated within a consignment (for International Courier only)

Request Parameters

For each of these services, the parameter requirements are similar but each service has slightly different requirements and needs to use the relevant service code. In the following table, we have provided which fields are required in the label request for a particular service. Additional requirements for Courier Tracked services are listed beneath the standard parameters.

Code samples for each of these separate service types are displayed further down this page.

Field NameDescriptionRequired for Courier?
carrierCarrier of the parcel. Value must be COURIERPOSTYes - CourierPost
orientationPrint orientation of the label. Value must be PORTRAIT or LANDSCAPE. Default value is LANDSCAPE.No
logo_idUnique identifier for merchants logo. The field is only relevant for Courier servicesNo
formatFormat of the label. Value must be PDF or PNG. Default Value is PDF.No
notification_endpointMerchants Webhook URL to receive notification when the label has been generated.No
sender_reference_1Sender's reference for the consignment. Will be printed on the label.No
sender_reference_2Sender's reference. Will be printed on the InvoiceNo
account_numberYour NZ Post Billing Account number (9 or 5 series).This is highly recommended to pass in the API call to obtain your account rates.No
label_dimensionsAn object specifying the label dimensions (in mm) upon which to print the label. If you are passing this object then the value should be 150x100 or 174x100 or empty string. If it is empty then default value is 174x100. This field is only mandatory to generate 150x100 dimensions label.No
paper_dimensionsAn object containing the paper size upon which to print the label. See Paper Dimension Object Parameters belowNo
paper_dimensions.width_cmWidth the label to be printed to. Default value is 17.4. Note: To print on a 150x100 label this value must be set to ‘15.0’No
paper_dimensions.height_cmHeight of the label to be printed to. Default value is 10No
paper_dimensions.stationery_sizePaper size upon which to print the label. Must be A4 or A5.No
sender_detailsAn object containing the sender contact details. See Sender Details Object Parameters below.Yes
sender_details.nameName of the senderYes
sender_details.phonePhone number of the sender. NO SPACES, DIGITS and '+' ONLYNo but highly desirable
sender_details.emailEmail address of the sender.No but highly desirable
sender_details.signatoryName of the individual sending the parcel, this is used for customs purposes.No
sender_details.company_nameCompany name of the sender.No
sender_details.site_codeSite code assigned to the address where the parcel will be picked up by the courier. This address is also used for the NZ Post manifest process.Yes
sender_details.customs_codeCustoms code of the sender.No
receiver_detailsAn object containing the receiver contact details. See Receiver Details Object Parameters belowYes
receiver_details.nameName of the receiverYes
receiver_details.phonePhone number of the receiver. NO SPACES, DIGITS and '+' ONLYNo but highly desirable
receiver_details.emailEmail address of the receiver.No but highly desirable
receiver_details.vat_numberThe VAT or GST number of the receiver. The field should not be > 14 characters.No
receiver_details.registration_numberRegistration number of the receiver required for Delivery Location Options.No
pickup_addressAn object containing the sender pickup address details. See Pickup Address Rules and Parameters belowYes (NB: this is used as the NZ return address for this service)
pickup_address Rulescountry_code (mandatory) AND only one of the following is required:
address_id (highly desirable)
OR
dpid(highly desirable)
OR
site_code (highly desirable)
OR
street, suburb, city, and postcode. Use the city for addresses without suburbs.
Address_id and dpid can be obtained using ParcelAddress API. Account managers set up site codes.
pickup_address.address_idAddress ID for the pickup address sourced from the ParcelAddress APISee pickup_address rules
pickup_address.dpidDelivery Point ID for the pickup address sourced from the ParcelAddress APISee pickup_address rules
pickup_address.site_codeSite code of pickup address. Setup by Account ManagerSee pickup_address rules
pickup_address.company_nameCompany name of the pickup addressNo
pickup_address.building_nameBuilding name of the pickup address.No
pickup_address.streetStreet name of the pickup address.See pickup_address rules
pickup_address.suburbSuburb of the pickup addressSee pickup_address rules
pickup_address.cityCity of the pickup addressSee pickup_address rules
pickup_address.postcodePostal or zip code of the pickup address.See pickup_address rules
pickup_address.stateRegional, provincial or county name of the pickup address.No
pickup_address.unit_typeType of unit (if applicable) of the pickup address.No
pickup_address.unit_valueValue of the unit type.Yes if pickup_address.unit_type is not blank
pickup_address.floorFloor of the pickup address.No
pickup_address.country_codeTwo character country code of the pickup address.No
delivery_addressAn object containing the receiver delivery address details. See Receiver Address Object Parameters sectionYes
delivery_address Rulescountry_code (mandatory) AND only one of the following is required:
address_id (highly desirable)
OR
dpid(highly desirable)
OR
site_code (highly desirable)
OR
street, suburb, city, and postcode. Use the city for addresses without suburbs.
Address_id and dpid can be obtained using ParcelAddress API. Account managers set up site codes.
delivery_address.address_idAddress ID for the delivery address sourced from the ParcelAddress APISee delivery_address rules
delivery_address.dpidDelivery Point ID for the delivery address sourced from the ParcelAddress APISee delivery_address rules
delivery_address.site_codeSite code of the pickup address.See delivery_address rules
delivery_address.building_nameBuilding name of the delivery address.No
delivery_address.company_nameName of company that the parcel is being delivered to.No
delivery_address.street_numberStreet number of the delivery address.No but highly desirable
delivery_address.streetStreet name of the delivery address.See delivery_address rules
delivery_address.suburbSuburb of the delivery addressSee delivery_address rules
delivery_address.cityCity of the delivery addressSee delivery_address rules
delivery_address.stateState of the delivery addressNo
delivery_address.country_codeTwo character country code of the delivery address.Yes (this must be set to NZ)
delivery_address.postcodePostal or zip code of the delivery address.See delivery_address rules
delivery_address.unit_typeType of unit (if applicable) of the pickup address.No
delivery_address.unit_valueValue of the unit type.Yes if delivery_address.unit_type is not blank
delivery_address.floorFloor of the pickup address.No
delivery_address.instructionsDelivery instructions for courierNo
parcel_detailsAn object containing the label details for each label in the consignment. See Parcel Details Object Parameters sectionYes
parcel_details.service_codeCode to represent a delivery service. For domestic labels where carrier is COURIERPOST and the parcel is a Satchel, see rules in the Envelope Sizes section.Yes
parcel_details.add_onsArray of ancillary codes. Please refer to the Add ons section below for further details.No
parcel_details.return_indicatorIndications if the label is used for returning items. Values must be OUTBOUND or RETURN.Yes
parcel_details.descriptionThe box size name on the label for the dispatching person to choose the correct box for packing.No
parcel_details.currencyThe currency to indicate the value unit of contents in a parcel.Yes if parcel_details.service_code is any of Return Base Services table
parcel_details.dimensionsAn object containing the dimension details of a parcel. See Parcel Details - Dimension Object Parameters section.Yes
parcel_details.dimension RulesFor Courierpost labels that aren't Courierpost satchels, only one of the following is required:
length_cm, width_cm, and height_cm
OR
volume_m3 (highly desirable - only an option if carrier is Courierpost)
parcel_details.dimensions.length_cmLength of the parcel.See parcel_details.dimension rules
parcel_details.dimensions.width_cmWidth of the parcel.See parcel_details.dimension rules
parcel_details.dimensions.height_cmHeight of the parcel.See parcel_details.dimension rules
parcel_details.dimensions.volume_m3Volume of the parcel.See parcel_details.dimension rules
parcel_details.dimensions.weight_kgPhysical weight of the parcel in kilograms.Yes
parcel_details.dangerous_goodsAn object containing the hazard identification information of a parcel. See Parcel Details - Dangerous Goods Object Parameters section belowNo
parcel_details.dangerous_goods.hazard_classClassification of dangerous items in the parcel. Value must be from Hazard Identification Code List at: [http://www.ilo.org/legacy/english/protection/safework/cis/products/safetytm/tranann5.htm]No
parcel_details.dangerous_goods.type_codeUnited Nations Dangerous Goods identification code for dangerous items in the parcel. Value must be 4 digits.No
parcel_details.parcel_contentsAn array containing content details of a parcel.No
parcel_details.parcel_contents.content_numberNumber specifying an item in the parcel. Value must be an integer between 1 to 20 inclusive.Yes if parcel_details.service_code is any of Return Base Services table
parcel_details.parcel_contents.descriptionDescription of the parcel contents.Yes if parcel_details.service_code is any of Return Base Services table
parcel_details.parcel_contents.harmonised_system_tariffInternationally standardized name and number of the classification of the parcel content.No
parcel_details.parcel_contents.quantityQuantity of units in the parcel.Yes if parcel_details.service_code is any of Return Base Services table
parcel_details.parcel_contents.weight_kgWeight of each individual unit in the parcel (kgs).Yes if parcel_details.service_code is any of Return Base Services table
parcel_details.parcel_contents.valueDollar value of each individual unit in the parcel.Yes if parcel_details.service_code is any of Return Base Services table
parcel_details.parcel_contents.country_codeCountry code of the location in which the content piece was produced or manufactured. Value must be 2 characters.Yes if parcel_details.service_code is any of Return Base Services table

Courier Base Services

The following are sample base service codes for International inbound parcel and satchel courier services

GST inclusive Product CodeGST zero-rated Product CodeProduct Code Description
IWOLPIWXOLPOvernight Parcel
IWOLEIWXOLEEconomy Parcel
IWOLTPSDLIWXOLTPSDLSatchel (DLE)
IWOLTPSA5IWXOLTPSA5Satchel (A5)
IWOLTPSA4IWXOLTPSA4Satchel (A4)
IWOLTPSFSIWXOLTPSFSSatchel (FS)
IWOLTPSLFIWXOLTPSLFSatchel (LF)
IWOLTPSXLIWXOLTPSXLSatchel (XL)
IWOLTPSCTIWXOLTPSCTSatchel (CT)

Return Base Services

The following are sample base service codes for International Economy Returns and Courier Returns services

GST inclusive Product CodeGST zero-rated Product CodeProduct Code Description
IWEROLEIWXEROLEEconomy Returns Parcel
IWEROLTPSDLIWXEROLTPSDLEconomy Return Satchel (DLE)
IWEROLTPSA5IWXEROLTPSA5Economy Return Satchel (A5)
IWEROLTPSA4IWXEROLTPSA4Economy Return Satchel (A4)
IWEROLTPSFSIWXEROLTPSFSEconomy Return Satchel (FS)
IWEROLTPSLFIWXEROLTPSLFEconomy Return Satchel (LF)
IWEROLTPSXLIWXEROLTPSXLEconomy Return Satchel (XL)
IWEROLTPSCTIWXEROLTPSCTEconomy Return Satchel (CT)
IWROLPIWXROLPCourier Returns Parcel (Overnight)
IWROLEIWXROLECourier Economy Parcel (between Islands)
IWROLTPSDLIWXROLTPSDLCourier Returns Satchel (DLE)
IWROLTPSA5IWXROLTPSA5Courier Returns Satchel (A5)
IWROLTPSA4IWXROLTPSA4Courier Returns Satchel (A4)
IWROLTPSFSIWXROLTPSFSCourier Returns Satchel (FS)
IWROLTPSLFIWXROLTPSLFCourier Returns Satchel (LF)
IWROLTPSXLIWXROLTPSXLCourier Returns Satchel (XL)
IWROLTPSCTIWXROLTPSCTCourier Returns Satchel (CT)

Courier Satchel Sizes

Where the parcel is a satchel (and you intend to send as a satchel), and the service code has not been selected via the ShippingOptions API, then the envelope size must be concatenated to the end of the service code before submitting the label request e.g. IWOLTPSFS

Below is a list of valid satchel sizes.

Size CodeDescription
A4A4
A5A5
DLDLE
FSFoolscap
LFLineFlow
XLXtra Large
CTCT

Courier Add ons

The following are sample value add-ons.

Add on NameDescription
IWSR or IWXSRCourier Signature Required
IWPR & IWXPRCourier Photo Required
IWOLRD or IWXOLRDCourier Rural Delivery
IWOLSAT or IWXOLSATCourier Saturday Delivery
IWOLDG or IWXOLDGCourier Dangerous Goods
IWXFRCourier International Freight
IWXCLCourier Customs Clearance

Courier Add-on Rules

The following rules apply to add-on services included in a label request:

  1. Add-on services can only be present when the carrier is CourierPost
  2. Only one of the following can be present on the label request: IWXOLRD Courier Rural Delivery, IWXOLSAT Courier Saturday Delivery, or IWXOLDG Courier Dangerous Goods
  3. Signature required, IWXSR, may always be present

Merchants must ensure that when appropriate, the prepaid ticket corresponding to the requested add-on service is affixed to the parcel.

Prepaid TicketDescription
GreenSaturday delivery

Example 1: Overnight CourierPost Outbound label for a single parcel (174x100mm)

{
    "carrier": "COURIERPOST",
    "orientation": "LANDSCAPE",
    "format": "PDF",
    "sender_reference_1": "Order 34234",
    "sender_reference_2": "Sales",
    "label_dimensions" : "174x100",
    "paper_dimensions": {
    "width_cm": 17.4,
    "height_cm": 10.0
  },
    "sender_details": {
        "name": "Daisy Duck",
        "phone": "0211246987",
        "site_code": 34533
    },
    "pickup_address": {
        "country_code": "NZ",
        "company_name": "Cartoon Company",
        "street": "122 Kerwyn Avenue",
        "suburb": "East Tamaki",
        "city": "Auckland",
        "postcode": "2013"
    },
    "receiver_details": {
        "name": "Mickey Mouse",
        "phone": "0224309792",
        "email": "m.mouse@abc.co.nz"
    },
    "delivery_address": {
        "company_name": "",
        "street_number": "",
        "street": "59 Tawa Road",
        "suburb": "One Tree Hill",
        "city": "Auckland",
        "state": "",
        "country_code": "NZ",
        "postcode": "1061",
        "instructions": "look out for dog"
    },
    "parcel_details": [
        {
            "service_code": "IWXOLP",
            "return_indicator": "OUTBOUND",
            "description": "Test description",
            "dimensions": {
                "length_cm": 50,
                "width_cm": 20,
                "height_cm": 20,
                "weight_kg": 1.7
            }
        }
    ]
}

```

resources/1-92e021f1-a2ed-4ed3-8663-8f43dad3682c.PNG

Example 2: Overnight CourierPost Return for a single parcel (174x100mm)

{
    "carrier": "COURIERPOST",
    "orientation": "LANDSCAPE",
    "format": "PDF",
    "sender_reference_1": "Order ABC1",
    "sender_reference_2": "Return",
    "label_dimensions" : "174x100",
    "paper_dimensions": {
    "width_cm": 17.4,
    "height_cm": 10.0
  },
    "sender_details": {
        "name": "Daisy Duck",
        "phone": "0211246987",
        "site_code": 34533
    },
    "pickup_address": {
        "country_code": "NZ",
        "company_name": "Cartoon Company",
        "street": "122 Kerwyn Avenue",
        "suburb": "East Tamaki",
        "city": "Auckland",
        "postcode": "2013"
    },
    "receiver_details": {
        "name": "Mickey Mouse",
        "phone": "0224309792",
        "email": "m.mouse@abc.co.nz"
    },
    "delivery_address": {
        "company_name": "",
        "street_number": "",
        "street": "59 Tawa Road",
        "suburb": "One Tree Hill",
        "city": "Auckland",
        "state": "",
        "country_code": "NZ",
        "postcode": "1061",
        "instructions": ""
    },
    "parcel_details": [
        {
            "service_code": "IWXROLP",
            "return_indicator": "RETURN",
            "description": "Test description",
            "currency": "NZD",
            "dimensions": {
                "length_cm": 50,
                "width_cm": 20,
                "height_cm": 20,
                "weight_kg": 1.7
            },
            "parcel_contents": [{
                    "content_number": 1,
                    "description": "Holdem Purse  (limited edition)",
                    "quantity": 1,
                    "weight_kg": 0.3,
                    "value": 67.10,
                    "country_code": "NZ"
                }
            ]
        }
    ]
}

```

resources/2-8dd672cc-8bce-459a-a476-e2b6b2427331.PNG

Example 3: Overnight CourierPost Outbound label and Overnight Return label (174x100mm)

{
    "carrier": "COURIERPOST",
    "orientation": "LANDSCAPE",
    "format": "PDF",
    "sender_reference_1": "NZSEMKO",
    "sender_reference_2": "NZSEMKO",
    "label_dimensions": "174x100",
    "paper_dimensions": {
        "width_cm": 17.4,
        "height_cm": 10.0
    },
    "sender_details": {
        "name": ".",
        "phone": "6112345678",
        "email": "",
        "company_name": "",
        "site_code": 34533
    },
    "pickup_address": {
        "company_name": "D-CO LIMITED",
        "building_name": "",
        "unit_type": "",
        "unit_value": "",
        "floor": "",
        "street": "Private Bag 211111",
        "suburb": "Returns Centre",
        "city": "Auckland",
        "country_code": "NZ",
        "postcode": "2154"
    },
    "receiver_details": {
        "name": "John Smith",
        "phone": "0211632789",
        "email": ""
    },
    "delivery_address": {
        "is_collection": false,
        "building_name": "",
        "company_name": "",
        "unit_type": "",
        "unit_value": "",
        "floor": "",
        "street": "192C Cliff View Drive",
        "suburb": "Green Bay",
        "city": "Auckland",
        "country_code": "NZ",
        "postcode": "0604",
        "instructions": ""
    },
    "parcel_details": [
        {
            "service_code": "IWXOLP",
            "add_ons": [],
            "return_indicator": "OUTBOUND",
            "description": "SALES",
            "dimensions": {
                "length_cm": 20,
                "width_cm": 20,
                "height_cm": 30,
                "weight_kg": 2
            }
        },
        {
            "service_code": "IWROLP",
            "add_ons": [],
            "return_indicator": "RETURN",
            "description": "RETURN",
            "currency": "NZD",
            "dimensions": {
                "length_cm": 20,
                "width_cm": 20,
                "height_cm": 30,
                "weight_kg": 2
            },
            "parcel_contents": [
                {
                    "content_number": 1,
                    "description": "Holdem Purse  (limited edition)",
                    "quantity": 1,
                    "weight_kg": 0.3,
                    "value": 67.10,
                    "country_code": "NZ"
                }
            ]
        }
    ]
}

```

resources/3-4437805b-c682-466d-93fc-f604d774635f.PNG

resources/3_2-532b46f9-e1ac-4121-aad7-97d93a505093.PNG

Example 4: Overnight CourierPost Outbound label and Economy Return label (150x100mm)

{
    "carrier": "COURIERPOST",
    "orientation": "LANDSCAPE",
    "format": "PDF",
    "sender_reference_1": "NZ12345",
    "sender_reference_2": "NZ12345",
    "label_dimensions": "150x100",
    "paper_dimensions": {
        "width_cm": 15.0,
        "height_cm": 10.0
    },
    "sender_details": {
        "name": ".",
        "phone": "6112345678",
        "email": "",
        "company_name": "",
        "site_code": 34533
    },
    "pickup_address": {
        "company_name": "The Widget Company",
        "building_name": "",
        "unit_type": "",
        "unit_value": "",
        "floor": "",
        "street": "Private Bag 211111",
        "suburb": "Returns Centre",
        "city": "Auckland",
        "country_code": "NZ",
        "postcode": "2154"
    },
    "receiver_details": {
        "name": "Jane Doe",
        "phone": "0211632789",
        "email": ""
    },
    "delivery_address": {
        "is_collection": false,
        "building_name": "",
        "company_name": "",
        "unit_type": "",
        "unit_value": "",
        "floor": "",
        "street": "192C Cliff View Drive",
        "suburb": "Green Bay",
        "city": "Auckland",
        "country_code": "NZ",
        "postcode": "0604",
        "instructions": ""
    },
    "parcel_details": [
        {
            "service_code": "IWXOLP",
            "add_ons": [
                "IWXSR"
            ],
            "return_indicator": "OUTBOUND",
            "description": "SALES",
            "dimensions": {
                "length_cm": 20,
                "width_cm": 20,
                "height_cm": 30,
                "weight_kg": 2
            }
        },
        {
            "service_code": "IWXEROLE",
            "add_ons": [],
            "return_indicator": "RETURN",
            "description": "RETURN",
            "currency": "NZD",
            "dimensions": {
                "length_cm": 20,
                "width_cm": 20,
                "height_cm": 30,
                "weight_kg": 2
            },
            "parcel_contents": [
                {
                    "content_number": 1,
                    "description": "Holdem Purse  (limited edition)",
                    "quantity": 1,
                    "weight_kg": 0.3,
                    "value": 67.10,
                    "country_code": "NZ"
                }
            ]
        }
    ]
}

```

resources/4-9828214e-5133-429c-b409-d0af53c204e7.PNG

resources/4_2-8d0abd82-3687-46ed-a4fe-eee5b54207b6.PNG

Example 5: Economy Return label for a single parcel (150x100mm)

{
    "carrier": "COURIERPOST",
    "orientation": "LANDSCAPE",
    "format": "PDF",
    "sender_reference_1": "DSH-1",
    "sender_reference_2": "DSH-1",
    "paper_dimensions": {
        "width_cm": 15.0,
        "height_cm": 10.0
    },
    "label_dimensions": "150x100",
    "sender_details": {
        "name": "Nigel Mustard",
        "phone": "08001234568",
        "email": "info@hotdog.com",
        "company_name": "NZ Hotdog Company",
        "site_code": 34533
    },
    "receiver_details": {
        "name": "Donald Burger",
        "phone": "0218978569",
        "email": "nig.el@gmail.com"
    },
    "pickup_address": {
        "company_name": "ABC Limited",
        "street": "PO Box 12345",
        "suburb": "Returns Centre",
        "city": "Auckland",
        "country_code": "NZ",
        "postcode": "2154"
    },
    "delivery_address": {
        "street": "29 Stafford Street",
        "suburb": "Dunedin Central",
        "city": "Dunedin",
        "country_code": "NZ",
        "postcode": "9011"
    },
    "parcel_details": [
        {
            "service_code": "IWXEROLE",
            "return_indicator": "RETURN",
            "description": "Default",
            "currency": "NZD",
            "dimensions": {
                "length_cm": 1.0,
                "width_cm": 1.0,
                "height_cm": 1.0,
                "weight_kg": 0.376
            },
            "parcel_contents": [
                {
                    "content_number": 1,
                    "description": "Holdem Purse  (limited edition)",
                    "quantity": 1,
                    "weight_kg": 0.3,
                    "value": 67.10,
                    "country_code": "NZ"
                }
            ]
        }
    ]
}

```

resources/5-72e394ea-575c-4a27-85f4-31bff5530aca.PNG

Response Parameters

Field NameDescriptionMandatory
consignment_idUnique identifier for the consignment if the request is successful.Yes
message_idA unique ID for the API callYes
successReturns true if request is successful. Returns false if request is not successful.Yes

Sample Response

{
  "consignment_id": "DVZQYF",
  "message_id": "520f4fa0-22cc-11eb-b1e1-027414412442",
  "success": true
}

Reviews